package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class CustomerPlanQueryObject extends QueryObject{

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private String inputUser;//输入人
    private String subject;// 主题
    private String customer;//客户名称
    private String type;//实施方式
    private Integer status; //通过客户状态判断显示的界面

    public String getIdNo(){

        return StringUtils.hasLength(inputUser)? inputUser:null;
    }
    public String getTel(){

        return StringUtils.hasLength(subject)? subject:null;
    }
    public String getCustomer(){

        return StringUtils.hasLength(customer)? customer:null;
    }
    public String getType(){

        return StringUtils.hasLength(type)? type:null;
    }
}
